<script type="text/javascript" src="javascript/ajax/prototype.js"></script>
<script type="text/javascript" src="javascript/ajax/scriptaculous.js" ></script>
<script type="text/javascript" src="javascript/ajax/effects.js" ></script>
<script type="text/javascript" src="javascript/colorselector/colorselector.js" ></script>
<script type="text/javascript">
      var item_count = 1;
      var max_item = 15;
      function addItem(){
        if (item_count < max_item){
          var div = document.getElementById('itemcontainer');
          var file = document.createElement('input');
          var br   = document.createElement('br');
          file.setAttribute('name' , 'images[]');
          file.setAttribute('type' , 'file');
          file.setAttribute('size' , '51');
          div.appendChild(file);
          div.appendChild(br);
          item_count++;
        }else{
          var addMore = document.getElementById('addMore');
          addMore.innerHTML = "";
        }
        return false;
      }
</script>

<style type="text/css">
table.list_category td {
padding-top:5px;
vertical-align: top;
}
</style>
<!--[ include file="admin_header_menu.htm" ]-->
<div class="admin_content">
    <a class="button add" href="<!--[pnmodurl modname='iCarrent' type='admin' func='form' ctrl='Pickuplocation' shop_id=$_GET.shop_id]-->">
    <!--[pnml name='_ICARRENT_ADMIN_LIST_PICKUPLOCATE_ADD']-->
    </a>
    <a class="button" href="#"><!--[pnml name='_ICARRENT_ADMIN_LIST_PICKUPLOCATE']--></a>
    <!--[if $_GET.shop_id]-->
      <div class="shop-head" align='center'><!--[get_shop_by_id shop_id=$_GET.shop_id]--></div>
    <!--[/if]-->
<table class="list_category">
  <tr>
    <th><!--[pnml name='_ICARRENT_ADMIN_LIST_PICKUPLOCATE_PROVINCE']--></th>
    <th><!--[pnml name='_ICARRENT_ADMIN_LIST_PICKUPLOCATE_DISTRICT']--></th>
    <th><!--[pnml name='_ICARRENT_ADMIN_LIST_PICKUPLOCATE_NAME']--></th>
    <th class="last"><!--[pnml name='_ICARRENT_ADMIN_LIST_PICKUPLOCATE_OPERATION']--></th>
  </tr>
  <!--[if $objectArray]-->
    <!--[foreach from=$objectArray item=item]-->
    <tr>

      <td><!--[$item.province_name]--></td>
      <td><!--[$item.district_name]--></td>
      <td><!--[$item.name]--></td>
      <td>
        <a class="button left up" href="<!--[pnmodurl modname='iCarrent' type='admin' func='form' ctrl='Pickuplocation' id=$item.id]-->"></a>
        <a class="button left delete" href="<!--[pnmodurl modname='iCarrent' type='admin' func='delete' ctrl='Pickuplocation' id=$item.id]-->" onclick="return confirm('Are you sure you want to delete?')"></a>
      </td>
    </tr>
    <!--[/foreach]-->
    <td colspan="4" align="center">
      <div id="itemcontainer" >
      </div>
      <div id="addMore">
      <a href="#" onclick="addItem();return false;">[More location]</a></div>
    </td>
  <!--[else]-->
  <tr>
    <td colspan="4" align="center">
      <!--[pnml name='_ICARRENT_ADMIN_LIST_BRAND_EMPTY']-->
    </td>
  </tr>
  <!--[/if]-->
</table>
<div class="page_action">
				<!--[innopager  show=page
                				img_prev="modules/iCarrent/pnimages/back.png"
												img_next="modules/iCarrent/pnimages/next.png"
												rowcount=$pager.numitems
												limit=$pager.itemsperpage
												posvar=startnum
												shift=0
												request_uri=$smarty.server.REQUEST_URI

				]-->
</div>
</div>